﻿using Lsk.Business;
using Lsk.Business.DTO;
using Lsk.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace lsk.Web.Api
{
    public class AuctionController : ApiController
    {
        //[Authorize]
        [HttpGet]
        public IEnumerable<GetAuction_Result> GetAuction()
        {
            Auction newManager = new Auction();
            return newManager.GetAuction();
        }

        [HttpGet]
        public AuctionMessage GetAuction(string id)
        {
            Auction newManager = new Auction();
            return newManager.GetAuction(id);

        }
    }
}
